package com.huaxin.hxmoduleworkorder.models;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import com.huaxin.hxmoduleworkorder.common.enums.CustomerType;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;
import lombok.EqualsAndHashCode;

@Data
@TableName(value = "inspection_order_customer", autoResultMap = true)
@EqualsAndHashCode(callSuper = true)
public class InspectionOrderCustomer extends BaseModel {
    /**
     * 工单id
     */
    @TableField(value = "order_id")
    private String orderId;
    /**
     * 客户id
     */
    @TableField(value = "customer_id")
    private String customerId;
    /**
     * 客户名称
     */
    @TableField(value = "customer_name")
    private String customerName;
    /**
     * 客户地址
     */
    @TableField(value = "customer_address")
    private String customerAddress;
    /**
     * 客户联系人
     */
    @TableField(value = "customer_contact")
    private String customerContact;
    /**
     * 客户联系电话
     */
    @TableField(value = "customer_phone")
    private String customerPhone;
    /**
     * 客户类型
     */
    @TableField(value = "customer_type")
    @Schema(description = "客户类型，允许值：residential（住宅）/industrial（工业）/commercial（商业）", example = "residential")
    private CustomerType customerType;
}
